package com.example.howard.xiao7music.model;

import android.content.Context;

import com.example.howard.xiao7music.bean.PlayBean;
import com.example.howard.xiao7music.bean.SearchBean;
import com.example.howard.xiao7music.bean.SingerSongBean;
import com.example.howard.xiao7music.bean.SongDownloadBean;
import com.example.howard.xiao7music.bean.SongRankingBean;

import org.xml.sax.DTDHandler;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import retrofit2.Call;

/**
 * Created by Howard on 2016/9/24.
 */
public interface GetResource {

    interface GetLocalSource {
        List<Map<String, Object>> getAllLocalSource (Context context);
        List<String> getSingerName (Context context);
        List<Map<String, Object>> getFolderName (Context context);
        List<Map<String, Object>> getLocalSourceBySinger (Context context,String singer);
        List<Map<String, Object>> getLocalSourceByFolder (Context context,String path);
    }

    interface GetRemoteSource {
        Call<SongRankingBean> getSongRanking (int num);
        Call<SingerSongBean> getSingerSong (String singerid);
        String getSearch (String query);
        Call<PlayBean> getPlay (String songid);
        Call<SongDownloadBean> getdownloadsong (long songid);
    }


}
